<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name: {{ name }}</div>
    <MySon v-model="num" :str.sync="str" :son.sync="son" />
    <MySon1 v-model="num1" :str1.sync="str1" />
  </div>
</template>

<script>
import MySon from '@/views/dashboard/my-son.vue'
import MySon1 from '@/views/dashboard/my-son1.vue'
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  components: {
    MySon1,
    MySon
  },
  data() {
    return {
      num: 5,
      num1: 5,
      str: '加班',
      str1: '加班',
      son: 99
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
